﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LogAnalizer
{
    public class LogMessage
    {
        private string _from;
        private string _to;

        public string time { get; set; }

        public string from
        { 
            get { return _from; }
            set
            {
                _from = value.Substring(value.LastIndexOf("/")+1);
            }
        }

        public string to 
        {
            get { return _to; }
            set
            {
                _to = value.Substring(value.LastIndexOf("/")+1);
            }
        }

        public MessageType what { get; set; }
    }
}
